package com.woniuxy.service;

import java.util.List;

import com.woniuxy.pojo.Dept;
import com.woniuxy.pojo.TreeNode;

public interface DeptService {

	public List<Dept> getAll();
	
	public List<Dept> getDeptByParentId(Integer parent_id);
	
	public List<TreeNode> getTree(Integer parent_id);
	
	public TreeNode getTreeNode(Dept d);

	public int addOne(Dept dept);
}
